var http = require('http');
// var User = require('./models/User');
var Teacher = require('./models/Teacher');
http.createServer(function (request, response){
	response.writeHead(200,{'Content-Type':'text/html;charset=utf-8'});
	if(request.url !== '/favicon.ico'){
		// user = new User(1,'张三',30);
		// user.id = 1;
		// user.name = '张三';
		// user.age = 30;

		// user.enter();
		
		teacher = new Teacher(2,'李四',50);
		teacher.enter();
		teacher.teach(response);
		response.end('');
	}
}).listen(8000);
console.log('Server is runnint at http://127.0.0.1:8000');